-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[dashboard as code] dashboard client #241393
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
/ci |
|
/ci |
|
/ci |
|
/ci |
|
/ci |
|
/ci |
|
/ci |
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Module Count
Public APIs missing comments
Async chunks
Public APIs missing exports
Page load bundle
History
|
|
Pinging @elastic/kibana-presentation (Team:Presentation) |
|
@elasticmachine merge upstream |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm! nice cleanup and a clean, simple PR for reviewing. code review and tested dashboard client methods.
| */ | ||
|
|
||
| export const LATEST_VERSION = 1; | ||
| export const DASHBOARD_API_VERSION = String(LATEST_VERSION); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think there's anything we need to do here right now, but it's coincidental that the LATEST_VERSION used by Content Management and the DASHBOARD_API_VERSION for the pubic API are both 1. I suspect we'll be removing CM from the Dashboard in the future and the LATEST_VERSION const will go away. When the Dashboard API reaches Tech Preview, the const will change to 2023-10-31.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why "2023-10-31" What does that date mean?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's the date-based API versioning scheme that Elastic uses for all public APIs. More info here and restriction implemented here. We just keep it at "1" for now as the endpoint is still internal only.
|
@elasticmachine merge upstream |
|
@elasticmachine merge upstream |
|
@elasticmachine merge upstream |
|
@elasticmachine merge upstream |
Part of #238500
PR consolidates HTTP requests into
dashboardClient.getanddeleteare migrated to REST endpoints whilecreate,search, andupdateare labeled with TODOs. Those endpoints need some work before dashboard can use them.